<template>
  <view>
		<up-parse @imgTap="(event) => this.previewImg(event.src)" :previewImg="false" :content="html"></up-parse>
  </view>
</template>

<script>
import { chatApi } from '@/apis/cloud/chat'

	
export default {
  name: 'ImageItem',
  props: {
		html: {
			type: Object,
			required: true
		}
  },
  data() {
		return {

		}
	},
	methods: {
		previewImg(url) {
			this.$emit('previewImg', url);
		}
  }
};
</script>

<style lang="scss" scoped>
@import "../../config/global.scss";
</style>
